#ifndef RUNNABLE_H
#define RUNNABLE_H

#include <windows.h>

DWORD WINAPI threadEntryPoint (LPVOID args);

class Runnable
{
public:
	Runnable ();

	bool startRunning ();
	bool isRunning ();
	void stopRunning ();

	friend DWORD WINAPI threadEntryPoint (LPVOID args);

protected:
	virtual void run ();

private:
	HANDLE thread;
	DWORD threadID;
	bool running;
};

#endif